package demo.entity;

import sun.dc.pr.PRError;

import java.util.Date;

public class Mark {
    private Integer id;
    private User stu;
    private Course course;
    private Clz clz;
    private Double score;
    private Date tpost;
    private Integer tid;

    public Mark() {
        stu=new User();
        tpost=new Date();
        clz=new Clz();
    }

    public Integer getId() {
        return id;
    }

    public User getStu() {
        return stu;
    }

    public Course getCourse() {
        return course;
    }

    public Clz getClz() {
        return clz;
    }

    public Double getScore() {
        return score;
    }

    public Date getTpost() {
        return tpost;
    }

    public Integer getTid() {
        return tid;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setStu(User stu) {
        this.stu = stu;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public void setClz(Clz clz) {
        this.clz = clz;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public void setTpost(Date tpost) {
        this.tpost = tpost;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    @Override
    public String toString() {
        return "Mark{" +
                "id=" + id +
                ", stu=" + stu +
                ", course=" + course +
                ", clz=" + clz +
                ", score=" + score +
                ", tpost=" + tpost +
                ", tid=" + tid +
                '}';
    }
}
